package app.demo.java.controller;


import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


import app.demo.java.biz.ITestBiz;

import com.cn.fw4j.ioc.annotation.Fw4jSpringIoc;
import com.cn.fw4j.json.annotation.JSON;
import com.cn.fw4j.mvc.annotation.GET;
import com.cn.fw4j.mvc.annotation.Fw4jController;
import com.cn.fw4j.util.OutParameter;

@Fw4jController("/java")
public class JDemoController {
		
	    @Fw4jSpringIoc("TestBiz")
		private ITestBiz testBiz = null;
	    
	    @GET("/index")
	    @JSON("com.cn.fw4j.gson.GoogleJson")
		public Object index(HttpServletRequest request,HttpServletResponse response,OutParameter<Object,Object> out){
	    	return testBiz.getEnitiy();
		}
}
